<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul>
      <li
        class="item border-bottom"
        v-for="item in list"
        :key="item.id"
      >
        <div class="item-wrapper">
          <img class="item-img" :src="item.imgUrl" alt="" />
          <div class="item-info">
            <p class="item-desc">{{item.desc}}</p>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "HomeWeekend",
  props:{
      list:Array
  }
};
</script>
<style lang="stylus" scoped>
.item-wrapper{
    margin-left: .05rem
    margin-top: .3rem 
}
.title 
  line-height: 0.8rem;
  background: #eee;
  text-indent: 0.2rem;


ul>li 
  float: left;
  .item-img 
    width: 3.5rem;
    height: 2rem;
    padding: 0 0.1rem ;
    border-radius: .3rem   
  .item-info  
    padding: -1rem 0;
    
    
    .item-desc 
      font-size:.3rem
      width 3.5rem
      line-height: 0.4rem;
      color: #000;
      padding: 0.1rem 0;
      margin-left: .1rem
     
</style>
